package oaSystem.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import oaSystem.biz.MessageAttachmentBiz;
import oaSystem.entity.MessageAttachment;
import oaSystem.mapper.MessageAttachmentMapper;
@Service
public class MessageAttachmentBizImpl implements MessageAttachmentBiz{
	@Autowired
	private MessageAttachmentMapper messageAttachmentMapper;
	
	@Override
	public List<MessageAttachment> fetchMessageAttachmentMapperByMessageId(int messageId) {
		return messageAttachmentMapper.fetchMessageAttachmentMapperByMessageId(messageId);
	}

	@Override//添加附件
	public void addMessageAttachment(MessageAttachment messageAttachment) {
		messageAttachmentMapper.addMessageAttachment(messageAttachment);
	}

	@Override
	public void deleteMessageAttachmentByMessageId(Integer messageId) {
		messageAttachmentMapper.deleteMessageAttachmentByMessageId(messageId);
	}

}
